home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / appkit / workspaceRequest.h < prev   
Text File  |  1993-04-08  |  3KB  |  85 lines

  1. #import <objc/Object.h>
  2. #import <objc/hashtable.h>
  3. #import "graphics.h"
  4.  
  5. @class NXImage, View;
  6.  
  7. @protocol NXWorkspaceRequestProtocol
  8.  
  9. - (BOOL)openFile:(const char *)fullPath;
  10. - (BOOL)openFile:(const char *)fullPath withApplication:(const char *)appName;
  11. - (BOOL)openFile:(const char *)fullPath withApplication:(const char *)appName andDeactivate:(BOOL)flag;
  12.  
  13. - (BOOL)openTempFile:(const char *)fullPath;
  14.  
  15. - (BOOL)openFile:(const char *)fullPath
  16.        fromImage:(NXImage *)anImage
  17.           at:(const NXPoint *)point
  18.       inView:(View *)aView;
  19.  
  20. - (BOOL)launchApplication:(const char *)appName;
  21. - (BOOL)launchApplication:(const char *)appName showTile:(BOOL)showTile autolaunch:(BOOL)autolaunch;
  22. - (const char *)getFullPathForApplication:(const char *)appName;
  23.  
  24. - (BOOL)findString:(const char *)aString inFile:(const char *)fullPath;
  25. - (BOOL)selectFile:(const char *)fullPath inFileViewerRootedAt:(const char *)rootFullpath;
  26.  
  27. - (void)findApplications;
  28.  
  29. - (void)fileSystemChanged;
  30. - (BOOL)didFileSystemChange;
  31. - (void)defaultsChanged;
  32. - (BOOL)didDefaultsChange;
  33.  
  34. /* Return values for type in getInfoForFile: */
  35.  
  36. extern NXAtom NXPlainFileType, NXDirectoryFileType, NXApplicationFileType;
  37. extern NXAtom NXFilesystemFileType, NXShellCommandFileType;
  38.  
  39. - (BOOL)getInfoForFile:(const char *)fullPath application:(char **)appName type:(NXAtom *)type;
  40.  
  41. - (NXImage *)getIconForFile:(const char *)fullPath;
  42.  
  43. - (BOOL)getInfoForFileSystemAt:(const char *)fullPath
  44.            isRemovable:(BOOL *)removableFlag
  45.             isWritable:(BOOL *)writableFlag
  46.          isUnmountable:(BOOL *)unmountableFlag
  47.            description:(char **)description
  48.               type:(char **)fileSystemType;
  49.  
  50. #define WSM_MOVE_OPERATION "move"
  51. #define WSM_COPY_OPERATION "copy"
  52. #define WSM_LINK_OPERATION "link"
  53. #define WSM_COMPRESS_OPERATION "compress"
  54. #define WSM_DECOMPRESS_OPERATION "decompress"
  55. #define WSM_ENCRYPT_OPERATION "encrypt"
  56. #define WSM_DECRYPT_OPERATION "decrypt"
  57. #define WSM_DESTROY_OPERATION "destroy"
  58. #define WSM_RECYCLE_OPERATION "recycle"
  59. #define WSM_DUPLICATE_OPERATION "duplicate"
  60.  
  61. - (int)performFileOperation:(const char *)operation
  62.              source:(const char *)source
  63.         destination:(const char *)destination
  64.               files:(const char *)files
  65.             options:(const char *)options;
  66.  
  67. - (BOOL)unmountAndEjectDeviceAt:(const char *)path;
  68. - (int)extendPowerOffBy:(int)requested;
  69.  
  70. - (void)slideImage:(NXImage *)image from:(const NXPoint *)fromPoint to:(const NXPoint *)toPoint;
  71.  
  72. - (void)hideOtherApplications;
  73.  
  74. - (void)beginListeningForDeviceStatusChanges;
  75. - (void)endListeningForDeviceStatusChanges;
  76.  
  77. - (void)beginListeningForApplicationStatusChanges;
  78. - (void)endListeningForApplicationStatusChanges;
  79.  
  80. - (BOOL)getMountedRemovableMedia:(char **)mountedList;
  81. - (BOOL)mountNewRemovableMedia:(char **)newlyMountedList;
  82. - (void)checkForRemovableMedia;
  83.  
  84. @end
  85.